package main

import "fmt"

func main() {
	num := []string{"零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"}
	units := []string{"", "拾", "佰", "仟", "万", "拾", "佰"}

	money := 12_0000
	fmt.Println("money:", money)

	fmt.Println("chinese:", convert(money, num, units))
}
func convert(money int, num, units []string) (res string) {
	for idxUnits := 0; money != 0; idxUnits++ {
		res = units[idxUnits] + res
		idxNum := money % 10
		res = num[idxNum] + res
		money /= 10
	}
	return
}
